* {
    margin: 0px;
    padding: 0px;
}

.switch {
    width: 80px;
    height: 120px;
    background-image: url(../images/light-switch.png);
}

.switch:active {
    background-position-x: 80px;
}
.switch:active~.lightbulb {
    background-position-x: 0px;
}
.lightbulb {
    width: 150px;
    height: 150px;
    background-image: url(../images/lightbulb.png);
    background-position-x: 150px;
}